package hb;
// default package


import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * RentOrder entity. @author MyEclipse Persistence Tools
 */

public class RentOrder  implements java.io.Serializable {


    // Fields    

     private Integer orderId;
     private House house;
     private User user;
     private Date date;
     private Set houses = new HashSet(0);


    // Constructors

    /** default constructor */
    public RentOrder() {
    }

	/** minimal constructor */
    public RentOrder(House house, User user, Date date) {
        this.house = house;
        this.user = user;
        this.date = date;
    }
    
    /** full constructor */
    public RentOrder(House house, User user, Date date, Set houses) {
        this.house = house;
        this.user = user;
        this.date = date;
        this.houses = houses;
    }

   
    // Property accessors

    public Integer getOrderId() {
        return this.orderId;
    }
    
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public House getHouse() {
        return this.house;
    }
    
    public void setHouse(House house) {
        this.house = house;
    }

    public User getUser() {
        return this.user;
    }
    
    public void setUser(User user) {
        this.user = user;
    }

    public Date getDate() {
        return this.date;
    }
    
    public void setDate(Date date) {
        this.date = date;
    }

    public Set getHouses() {
        return this.houses;
    }
    
    public void setHouses(Set houses) {
        this.houses = houses;
    }
   








}